package com.qf.test2;

import com.qf.entity.Wife;
import com.qf.service.WifeService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.data.jpa.domain.Specification;

/**
 * 2019/9/29
 * Administrator
 * springdata0928
 * 面向对象面向君  不负代码不负卿
 */
public class Demo4 {
    public static void main(String[] args) {
        ApplicationContext app=
                new ClassPathXmlApplicationContext("spring-data.xml");
        WifeService wifeService=(WifeService) app.getBean("wifeservice");
     /*  Wife wife =    wifeService.findbywid(1);
       System.out.println(wife.getWifename());*/
     /*  Wife wife= wifeService.findbyhusname("黄晓明");
       System.out.println(wife.getWifename()+","+wife.getHusband().getHusname());*/
     wifeService.updateWife("黄渤",1);
        Specification
    }
}
